{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport _slicedToArray from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/slicedToArray.js\";\nvar __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) {\n    if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  }\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport LoadingOutlined from \"@ant-design/icons/es/icons/LoadingOutlined\";\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport { cloneElement } from '../_util/reactNode';\nimport TimelineItem from './TimelineItem';\n// CSSINJS\nimport useStyle from './style';\nvar Timeline = function Timeline(props) {\n  var _classNames;\n  var _React$useContext = React.useContext(ConfigContext),\n    getPrefixCls = _React$useContext.getPrefixCls,\n    direction = _React$useContext.direction;\n  var customizePrefixCls = props.prefixCls,\n    _props$pending = props.pending,\n    pending = _props$pending === void 0 ? null : _props$pending,\n    pendingDot = props.pendingDot,\n    children = props.children,\n    className = props.className,\n    _props$reverse = props.reverse,\n    reverse = _props$reverse === void 0 ? false : _props$reverse,\n    _props$mode = props.mode,\n    mode = _props$mode === void 0 ? '' : _props$mode,\n    restProps = __rest(props, [\"prefixCls\", \"pending\", \"pendingDot\", \"children\", \"className\", \"reverse\", \"mode\"]);\n  var prefixCls = getPrefixCls('timeline', customizePrefixCls);\n  var pendingNode = typeof pending === 'boolean' ? null : pending;\n  // Style\n  var _useStyle = useStyle(prefixCls),\n    _useStyle2 = _slicedToArray(_useStyle, 2),\n    wrapSSR = _useStyle2[0],\n    hashId = _useStyle2[1];\n  var pendingItem = pending ? /*#__PURE__*/React.createElement(TimelineItem, {\n    pending: !!pending,\n    dot: pendingDot || /*#__PURE__*/React.createElement(LoadingOutlined, null)\n  }, pendingNode) : null;\n  var timeLineItems = React.Children.toArray(children);\n  timeLineItems.push(pendingItem);\n  if (reverse) {\n    timeLineItems.reverse();\n  }\n  var getPositionCls = function getPositionCls(ele, idx) {\n    if (mode === 'alternate') {\n      if (ele.props.position === 'right') return \"\".concat(prefixCls, \"-item-right\");\n      if (ele.props.position === 'left') return \"\".concat(prefixCls, \"-item-left\");\n      return idx % 2 === 0 ? \"\".concat(prefixCls, \"-item-left\") : \"\".concat(prefixCls, \"-item-right\");\n    }\n    if (mode === 'left') return \"\".concat(prefixCls, \"-item-left\");\n    if (mode === 'right') return \"\".concat(prefixCls, \"-item-right\");\n    if (ele.props.position === 'right') return \"\".concat(prefixCls, \"-item-right\");\n    return '';\n  };\n  // Remove falsy items\n  var truthyItems = timeLineItems.filter(function (item) {\n    return !!item;\n  });\n  var itemsCount = React.Children.count(truthyItems);\n  var lastCls = \"\".concat(prefixCls, \"-item-last\");\n  var items = React.Children.map(truthyItems, function (ele, idx) {\n    var pendingClass = idx === itemsCount - 2 ? lastCls : '';\n    var readyClass = idx === itemsCount - 1 ? lastCls : '';\n    return cloneElement(ele, {\n      className: classNames([ele.props.className, !reverse && !!pending ? pendingClass : readyClass, getPositionCls(ele, idx)])\n    });\n  });\n  var hasLabelItem = timeLineItems.some(function (item) {\n    var _a;\n    return !!((_a = item === null || item === void 0 ? void 0 : item.props) === null || _a === void 0 ? void 0 : _a.label);\n  });\n  var classString = classNames(prefixCls, (_classNames = {}, _defineProperty(_classNames, \"\".concat(prefixCls, \"-pending\"), !!pending), _defineProperty(_classNames, \"\".concat(prefixCls, \"-reverse\"), !!reverse), _defineProperty(_classNames, \"\".concat(prefixCls, \"-\").concat(mode), !!mode && !hasLabelItem), _defineProperty(_classNames, \"\".concat(prefixCls, \"-label\"), hasLabelItem), _defineProperty(_classNames, \"\".concat(prefixCls, \"-rtl\"), direction === 'rtl'), _classNames), className);\n  return wrapSSR( /*#__PURE__*/React.createElement(\"ul\", Object.assign({}, restProps, {\n    className: classNames(classString, hashId)\n  }), items));\n};\nTimeline.Item = TimelineItem;\nexport default Timeline;","map":{"version":3,"names":["__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","LoadingOutlined","classNames","React","ConfigContext","cloneElement","TimelineItem","useStyle","Timeline","props","useContext","getPrefixCls","direction","customizePrefixCls","prefixCls","pending","pendingDot","children","className","reverse","mode","restProps","pendingNode","wrapSSR","hashId","pendingItem","createElement","dot","timeLineItems","Children","toArray","push","getPositionCls","ele","idx","position","truthyItems","filter","item","itemsCount","count","lastCls","items","map","pendingClass","readyClass","hasLabelItem","some","_a","label","classString","assign","Item"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/timeline/Timeline.js"],"sourcesContent":["var __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport LoadingOutlined from \"@ant-design/icons/es/icons/LoadingOutlined\";\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport { cloneElement } from '../_util/reactNode';\nimport TimelineItem from './TimelineItem';\n// CSSINJS\nimport useStyle from './style';\nconst Timeline = props => {\n  const {\n    getPrefixCls,\n    direction\n  } = React.useContext(ConfigContext);\n  const {\n      prefixCls: customizePrefixCls,\n      pending = null,\n      pendingDot,\n      children,\n      className,\n      reverse = false,\n      mode = ''\n    } = props,\n    restProps = __rest(props, [\"prefixCls\", \"pending\", \"pendingDot\", \"children\", \"className\", \"reverse\", \"mode\"]);\n  const prefixCls = getPrefixCls('timeline', customizePrefixCls);\n  const pendingNode = typeof pending === 'boolean' ? null : pending;\n  // Style\n  const [wrapSSR, hashId] = useStyle(prefixCls);\n  const pendingItem = pending ? /*#__PURE__*/React.createElement(TimelineItem, {\n    pending: !!pending,\n    dot: pendingDot || /*#__PURE__*/React.createElement(LoadingOutlined, null)\n  }, pendingNode) : null;\n  const timeLineItems = React.Children.toArray(children);\n  timeLineItems.push(pendingItem);\n  if (reverse) {\n    timeLineItems.reverse();\n  }\n  const getPositionCls = (ele, idx) => {\n    if (mode === 'alternate') {\n      if (ele.props.position === 'right') return `${prefixCls}-item-right`;\n      if (ele.props.position === 'left') return `${prefixCls}-item-left`;\n      return idx % 2 === 0 ? `${prefixCls}-item-left` : `${prefixCls}-item-right`;\n    }\n    if (mode === 'left') return `${prefixCls}-item-left`;\n    if (mode === 'right') return `${prefixCls}-item-right`;\n    if (ele.props.position === 'right') return `${prefixCls}-item-right`;\n    return '';\n  };\n  // Remove falsy items\n  const truthyItems = timeLineItems.filter(item => !!item);\n  const itemsCount = React.Children.count(truthyItems);\n  const lastCls = `${prefixCls}-item-last`;\n  const items = React.Children.map(truthyItems, (ele, idx) => {\n    const pendingClass = idx === itemsCount - 2 ? lastCls : '';\n    const readyClass = idx === itemsCount - 1 ? lastCls : '';\n    return cloneElement(ele, {\n      className: classNames([ele.props.className, !reverse && !!pending ? pendingClass : readyClass, getPositionCls(ele, idx)])\n    });\n  });\n  const hasLabelItem = timeLineItems.some(item => {\n    var _a;\n    return !!((_a = item === null || item === void 0 ? void 0 : item.props) === null || _a === void 0 ? void 0 : _a.label);\n  });\n  const classString = classNames(prefixCls, {\n    [`${prefixCls}-pending`]: !!pending,\n    [`${prefixCls}-reverse`]: !!reverse,\n    [`${prefixCls}-${mode}`]: !!mode && !hasLabelItem,\n    [`${prefixCls}-label`]: hasLabelItem,\n    [`${prefixCls}-rtl`]: direction === 'rtl'\n  }, className);\n  return wrapSSR( /*#__PURE__*/React.createElement(\"ul\", Object.assign({}, restProps, {\n    className: classNames(classString, hashId)\n  }), items));\n};\nTimeline.Item = TimelineItem;\nexport default Timeline;"],"mappings":";;AAAA,IAAIA,MAAM,GAAG,IAAI,IAAI,IAAI,CAACA,MAAM,IAAI,UAAUC,CAAC,EAAEC,CAAC,EAAE;EAClD,IAAIC,CAAC,GAAG,CAAC,CAAC;EACV,KAAK,IAAIC,CAAC,IAAIH,CAAC;IAAE,IAAII,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAACP,CAAC,EAAEG,CAAC,CAAC,IAAIF,CAAC,CAACO,OAAO,CAACL,CAAC,CAAC,GAAG,CAAC,EAAED,CAAC,CAACC,CAAC,CAAC,GAAGH,CAAC,CAACG,CAAC,CAAC;EAAC;EACjG,IAAIH,CAAC,IAAI,IAAI,IAAI,OAAOI,MAAM,CAACK,qBAAqB,KAAK,UAAU,EAAE,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEP,CAAC,GAAGC,MAAM,CAACK,qBAAqB,CAACT,CAAC,CAAC,EAAEU,CAAC,GAAGP,CAAC,CAACQ,MAAM,EAAED,CAAC,EAAE,EAAE;IAC3I,IAAIT,CAAC,CAACO,OAAO,CAACL,CAAC,CAACO,CAAC,CAAC,CAAC,GAAG,CAAC,IAAIN,MAAM,CAACC,SAAS,CAACO,oBAAoB,CAACL,IAAI,CAACP,CAAC,EAAEG,CAAC,CAACO,CAAC,CAAC,CAAC,EAAER,CAAC,CAACC,CAAC,CAACO,CAAC,CAAC,CAAC,GAAGV,CAAC,CAACG,CAAC,CAACO,CAAC,CAAC,CAAC;EACnG;EACA,OAAOR,CAAC;AACV,CAAC;AACD,OAAOW,eAAe,MAAM,4CAA4C;AACxE,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,aAAa,QAAQ,oBAAoB;AAClD,SAASC,YAAY,QA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